<!DOCTYPE html>
<html>
<head>
    <title>进攻日志</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"/>
<meta name="format-detection" content="telephone=no" />
<link href="/css/style.css" type="text/css" rel="stylesheet">
</head>

<body>
<br>
<br>
<a href="/game/my/message?type=1">防守日志</a>
【进攻日志】
<hr>
<br>
<#list list as log>
    <#assign win = (log.winner.id==log.hero.id) >
    <div class="card ${win?string('card-success','card-error')}">
        <a href="/game/fight/log/${log.id}">${log.target.name}</a>
        <div class="card-time">${log.created?datetime}</div>
        <div class="card-win">[${win?string('胜利','我方战败')}]</div>
    </div>
    <br>
</#list>
<br><br>
<#include "inc/menu.ftl" >
<br/>
<#include "inc/footer.ftl" >

<style>
    .card{

    }
    .card-success {
        height: 50px;
        border: 1px solid #4db702;
        box-shadow:#4db702 0px 0px 18px inset;
        position: relative;
    }
    .card-error {
        height: 50px;
        border: 1px solid #b73300;
        box-shadow:#b73300 0px 0px 18px inset;
        position: relative;
    }
    .card-win {
        position: absolute;
        right: 2px;
        top: 2px;
        font-size: 14px;
    }
    .card-time {
        font-size: 14px;
        position: absolute;
        right: 2px;
        bottom: 2px;
    }
</style>
</body>
</html>
